package com.xbh.management.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xbh.management.entity.ManUserVO;
import com.xbh.management.model.ManUser;

import java.util.List;

/**
 * @program: management-center
 * @description:
 * @author: 许宝华
 * @create: 2021-08-29 19:28
 */

public interface UserService extends IService<ManUser> {

    ManUser selectUser(ManUser manUser);

    int updateUserWithUsername(String username,String imageURl);

    String queryUserWithUsername(String username);

    IPage<ManUser> queryAllUser(Page<ManUser> page,ManUser user);

    int saveUser(ManUser user);

    ManUser queryUserWithUserId(Long userId);

    int updateUserWithUserId(ManUser user);

    int updatePasswordWithUserId(ManUser user);

    String exportUser(List<ManUser> userList) throws Exception;

    ManUserVO queryUserRelationAllRole(ManUser user);

    ManUserVO queryUserRelationAllRoleByUsername(ManUser user);

    ManUser queryUser(String username);

    ManUserVO queryUserRelationAllMenu(ManUser user);

    List<ManUser> queryUserByUsername(String username);
}
